﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using FacebookLoginButton.Models;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace FacebookLoginButton.Models
{
    public class FacebookContext : DbContext
    {
        public string token = null;
        public DbSet<FacebookUser> PlutoUser { get; set; }
        public DbSet<FacebookUserFriend> PlutoUserFriend { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
            modelBuilder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
        }
    }
}